<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<title>飞腾会-FitaClub</title>
<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<!-- end header -->

<body>
  <c:choose>
    <c:when test="${url.pdf}">
      <a class="pdf-url" href="${url.longUrl}" download="确认书.pdf"></a>
    </c:when>
    <c:otherwise>
      <div class="long-url" data-href="${url.longUrl}"></div>
    </c:otherwise>
  </c:choose>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/short-url.js" />
  <script type="text/javascript">
    require(['page/short-url'], function(page) {
      page.init({
    	  "pdf" : "${url.pdf}"
      })
    })
  </script>
      
</body>
</html>